import { request } from './index'

// 左侧slider
export function GetCategory () {
  return request({
    url: '/api/goods',
    method: 'get'
  })
}

// 右侧tab content内容
export function GetCategoryGoods (order = 'sales', cid = 0, page = 1) {
  return request({
    url: `/api/goods?${order}=1&category_id=${cid}&page=${page}`,
    method: 'get'
  })
}
